package com.estar.integaration.Enum;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Author: YJL
 * Date: 2021/12/20 11:10
 **/

@AllArgsConstructor
@NoArgsConstructor
public enum GroupEnum {

  GROUPMACHINE(0,"机加工组"),GROUPELECTRICAL(1,"电气组"),GROUPONE(2,"生产一组"),GOURPTWO(3,"生产二组");


  private int code;
  private String name;

  public int getCode() {
    return code;
  }

  public void setCode(int code) {
    this.code = code;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }


  @Override
  public String toString() {
    return this.getCode() + "---" + this.getName();
  }
}
